//
//  XDLMSanPostFourTableViewCell.m
//  xindailianmeng
//
//  Created by 许佳奇 on 17/2/21.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "XDLMSanPostFourTableViewCell.h"

@implementation XDLMSanPostFourTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setUI];
    }
    return self;
}
-(void)setUI
{
    _telePhone = [[UILabel alloc] initWithFrame:CGRectMake(15*kscale, 15*kscale, 200*kscale, 14*kscale)];
    [_telePhone setFont:[UIFont systemFontOfSize:14]];
    [self.contentView addSubview:_telePhone];
    
    _time = [[UILabel alloc] initWithFrame:CGRectMake(15*kscale, 39*kscale, 200*kscale, 14*kscale)];
    [_time setFont:[UIFont systemFontOfSize:14]];
    [self.contentView addSubview:_time];
    
    _money = [[UILabel alloc] initWithFrame:CGRectMake(kScreenW -150 *kscale, 25*kscale, 135*kscale, 14*kscale)];
    [_money setTextAlignment:NSTextAlignmentRight];
    [_money setFont:[UIFont systemFontOfSize:14]];
    [self.contentView addSubview:_money];
}
-(void)setDataDic:(NSDictionary *)dataDic
{
    [_telePhone setText:[NSString stringWithFormat:@"%@",dataDic[@"mobile"]]];
    [_time setText:[NSString stringWithFormat:@"%@",dataDic[@"inTime"]]];
    [_money setText:[NSString stringWithFormat:@"%@",dataDic[@"inMoney"]]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
